# -*- coding: utf-8 -*-
import sys, urllib, urllib2, cPickle, pprint, logging, re
from datetime import tzinfo, timedelta, datetime, date
from xml.etree import cElementTree

from django.utils import simplejson
from google.appengine.ext import webapp
from google.appengine.ext import db

from weather import TQModel

class Temp(webapp.RequestHandler):
    def get(self):
        
        q = TQModel.get_by_id(3005)
        q.xml=u"""<?xml version="1.0"?>
<sktq id="101230101" ptime="09-07-01 23:00" city="福州">
     <qw h="23" wd="25.1" fx="150" fl="3.1" js="0" sd="87"/>
     <qw h="22" wd="26.3" fx="12" fl="0.8" js=".5" sd="86"/>
     <qw h="21" wd="-1.4" fx="12" fl="3" js="12.9" sd="9"/>
     <qw h="20" wd="28.6" fx="169" fl="2.4" js="0" sd="80"/>
     <qw h="19" wd="29" fx="134" fl="3" js="0" sd="78"/>
     <qw h="18" wd="29.3" fx="157" fl="4.9" js="0" sd="67"/>
     <qw h="17" wd="31" fx="155" fl="4.8" js="0" sd="67"/>
     <qw h="16" wd="31.9" fx="83" fl="3.4" js="0" sd="64"/>
     <qw h="15" wd="33" fx="160" fl="4.9" js="0" sd="61"/>
     <qw h="14" wd="34" fx="151" fl="4.5" js="0" sd="57"/>
     <qw h="13" wd="35.3" fx="182" fl="3.1" js="0" sd="44"/>
     <qw h="12" wd="35.5" fx="223" fl="0.9" js="0" sd="44"/>
     <qw h="11" wd="34.4" fx="213" fl="1.6" js="0" sd="54"/>
     <qw h="10" wd="33.5" fx="205" fl="3.5" js="0" sd="58"/>
     <qw h="09" wd="32" fx="238" fl="1.7" js="0" sd="62"/>
     <qw h="08" wd="31" fx="227" fl="1.8" js="0" sd="68"/>
     <qw h="07" wd="29.8" fx="206" fl="2.1" js="0" sd="71"/>
     <qw h="06" wd="27.9" fx="182" fl="3.6" js="0" sd="78"/>
     <qw h="05" wd="27.4" fx="154" fl="2.9" js="0" sd="80"/>
     <qw h="04" wd="27.6" fx="216" fl="2.5" js="0" sd="79"/>
     <qw h="03" wd="27.9" fx="182" fl="2.4" js="0" sd="77"/>
     <qw h="02" wd="28.1" fx="162" fl="3.1" js="0" sd="77"/>
     <qw h="01" wd="28.2" fx="166" fl="1.5" js="0" sd="77"/>
     <qw h="00" wd="28.5" fx="146" fl="2" js="0" sd="75"/>
</sktq>        
        """
        q.put()
        return 
        
        m = TQModel.all().order('date')
        
        q = m[0]
        q.xml = """<?xml version="1.0"?>
<sktq id="101010100" ptime="09-06-23 23:30" city="xx">
     <qw h="23" wd="28.5" fx="254" fl="1.8" js="0" sd="33"/>
     <qw h="22" wd="29.1" fx="248" fl="2.6" js="0" sd="32"/>
     <qw h="21" wd="29.9" fx="211" fl="2.3" js="0" sd="31"/>
     <qw h="20" wd="31.1" fx="200" fl="1.7" js="0" sd="28"/>
     <qw h="19" wd="32.3" fx="181" fl="2.6" js="0" sd="27"/>
     <qw h="18" wd="33.6" fx="206" fl="3.8" js="0" sd="24"/>
     <qw h="17" wd="33.9" fx="37" fl="2" js="0" sd="20"/>
     <qw h="16" wd="34" fx="209" fl="2.1" js="0" sd="17"/>
     <qw h="15" wd="34.8" fx="221" fl="3.7" js="0" sd="14"/>
     <qw h="14" wd="34.6" fx="339" fl="2.4" js="0" sd="13"/>
     <qw h="13" wd="33.7" fx="71" fl="1.8" js="0" sd="16"/>
     <qw h="12" wd="33.1" fx="338" fl="1.4" js="0" sd="18"/>
     <qw h="11" wd="30.8" fx="65" fl="3.1" js="0" sd="26"/>
     <qw h="10" wd="29.2" fx="342" fl="2.1" js="0" sd="30"/>
     <qw h="09" wd="27.3" fx="71" fl="2.9" js="0" sd="36"/>
     <qw h="08" wd="23.7" fx="31" fl="1.1" js="0" sd="51"/>
     <qw h="07" wd="23" fx="330" fl="0.8" js="0" sd="54"/>
     <qw h="06" wd="21.5" fx="327" fl="0.5" js="0" sd="56"/>
     <qw h="05" wd="21" fx="0" fl="0" js="0" sd="52"/>
     <qw h="04" wd="20.9" fx="85" fl="1.8" js="0" sd="53"/>
     <qw h="03" wd="22.8" fx="220" fl="4.2" js="0" sd="44"/>
     <qw h="02" wd="24.8" fx="214" fl="3.1" js="0" sd="35"/>
     <qw h="01" wd="24.6" fx="206" fl="1.6" js="0" sd="37"/>
     <qw h="00" wd="24.5" fx="242" fl="1" js="0" sd="36"/>
</sktq>
        """
        q.date = datetime(2009, 6, 23, 23, 30, 0)
        q.put()

        q = m[1]
        q.xml = """<?xml version="1.0"?>
<sktq id="101010100" ptime="09-06-24 23:30" city="xx">
     <qw h="23" wd="30.2" fx="330" fl="0.5" js="0" sd="34"/>
     <qw h="22" wd="31.5" fx="197" fl="2.2" js="0" sd="31"/>
     <qw h="21" wd="33.2" fx="226" fl="2" js="0" sd="27"/>
     <qw h="20" wd="35.1" fx="181" fl="6.5" js="0" sd="22"/>
     <qw h="19" wd="36.7" fx="104" fl="3.5" js="0" sd="21"/>
     <qw h="18" wd="38.1" fx="248" fl="3.8" js="0" sd="16"/>
     <qw h="17" wd="38.9" fx="193" fl="7.7" js="0" sd="14"/>
     <qw h="16" wd="39.5" fx="200" fl="5.5" js="0" sd="13"/>
     <qw h="15" wd="39.1" fx="217" fl="7.8" js="0" sd="15"/>
     <qw h="14" wd="38.3" fx="203" fl="7.6" js="0" sd="19"/>
     <qw h="13" wd="36.6" fx="257" fl="4.7" js="0" sd="24"/>
     <qw h="12" wd="34.8" fx="189" fl="4.3" js="0" sd="26"/>
     <qw h="11" wd="33.3" fx="189" fl="3.6" js="0" sd="27"/>
     <qw h="10" wd="31.8" fx="178" fl="1.5" js="0" sd="30"/>
     <qw h="09" wd="29.7" fx="68" fl="0.9" js="0" sd="34"/>
     <qw h="08" wd="27.3" fx="4" fl="1.4" js="0" sd="41"/>
     <qw h="07" wd="25.4" fx="71" fl="2" js="0" sd="50"/>
     <qw h="06" wd="23" fx="40" fl="1.1" js="0" sd="59"/>
     <qw h="05" wd="21.7" fx="79" fl="1.3" js="0" sd="63"/>
     <qw h="04" wd="22" fx="37" fl="1.4" js="0" sd="60"/>
     <qw h="03" wd="22.9" fx="161" fl="0" js="0" sd="55"/>
     <qw h="02" wd="25.7" fx="239" fl="1.6" js="0" sd="42"/>
     <qw h="01" wd="26.6" fx="242" fl="1.9" js="0" sd="38"/>
     <qw h="00" wd="27.6" fx="242" fl="1" js="0" sd="36"/>
</sktq>        """
        q.date = datetime(2009, 6, 24, 23, 30, 0)
        q.put()

        q = m[2]
        q.xml = """<?xml version="1.0"?>
<sktq id="101230101" ptime="09-06-25 23:30" city="xx">
     <qw h="23" wd="25.2" fx="210" fl="1.4" js="0" sd="88"/>
     <qw h="22" wd="25.4" fx="167" fl="2.1" js="0" sd="87"/>
     <qw h="21" wd="25.6" fx="179" fl="1.2" js="0" sd="84"/>
     <qw h="20" wd="25.8" fx="125" fl="1.4" js="0" sd="83"/>
     <qw h="19" wd="25.8" fx="142" fl="2" js="0" sd="84"/>
     <qw h="18" wd="26.3" fx="150" fl="3.6" js="0" sd="84"/>
     <qw h="17" wd="26.9" fx="184" fl="4" js="0" sd="83"/>
     <qw h="16" wd="27.9" fx="164" fl="4" js="0" sd="80"/>
     <qw h="15" wd="28.5" fx="225" fl="0.3" js="0" sd="77"/>
     <qw h="14" wd="28.3" fx="24" fl="1.2" js="0" sd="80"/>
     <qw h="13" wd="27.4" fx="322" fl="0.4" js="0" sd="83"/>
     <qw h="12" wd="27" fx="209" fl="0.5" js="0" sd="84"/>
     <qw h="11" wd="26.2" fx="177" fl="1.7" js="0" sd="86"/>
     <qw h="10" wd="26.1" fx="95" fl="1" js="0" sd="88"/>
     <qw h="09" wd="25.4" fx="171" fl="1.2" js="0" sd="91"/>
     <qw h="08" wd="24.7" fx="153" fl="1.8" js="4.9" sd="93"/>
     <qw h="07" wd="24.3" fx="152" fl="2.3" js=".1" sd="94"/>
     <qw h="06" wd="24" fx="181" fl="1.8" js="0" sd="95"/>
     <qw h="05" wd="23.9" fx="136" fl="1.4" js=".1" sd="95"/>
     <qw h="04" wd="23.8" fx="158" fl="1.2" js=".1" sd="94"/>
     <qw h="03" wd="23.7" fx="156" fl="1.8" js=".1" sd="94"/>
     <qw h="02" wd="23.9" fx="164" fl="2.5" js=".2" sd="94"/>
     <qw h="01" wd="23.9" fx="142" fl="2.8" js=".4" sd="94"/>
     <qw h="00" wd="23.9" fx="162" fl="2.6" js=".2" sd="94"/>
</sktq>
        """
        q.date = datetime(2009, 6, 25, 23, 30, 0)
        q.put()

        q = m[3]
        q.xml = """<?xml version="1.0"?>
<sktq id="101010100" ptime="09-06-25 23:30" city="xx">
     <qw h="23" wd="27.9" fx="71" fl="1.9" js="0" sd="40"/>
     <qw h="22" wd="28.9" fx="93" fl="2.1" js="0" sd="39"/>
     <qw h="21" wd="29.9" fx="116" fl="2.4" js="0" sd="41"/>
     <qw h="20" wd="30.8" fx="99" fl="6.9" js="0" sd="42"/>
     <qw h="19" wd="31.8" fx="92" fl="4.2" js="0" sd="43"/>
     <qw h="18" wd="33.7" fx="99" fl="6.8" js="0" sd="43"/>
     <qw h="17" wd="35.1" fx="133" fl="1.5" js="0" sd="26"/>
     <qw h="16" wd="35.9" fx="78" fl="5.6" js="0" sd="25"/>
     <qw h="15" wd="35.8" fx="110" fl="3.7" js="0" sd="25"/>
     <qw h="14" wd="35.8" fx="124" fl="6.7" js="0" sd="28"/>
     <qw h="13" wd="35.6" fx="119" fl="3.4" js="0" sd="23"/>
     <qw h="12" wd="35.3" fx="73" fl="5.9" js="0" sd="16"/>
     <qw h="11" wd="34.3" fx="73" fl="1.8" js="0" sd="24"/>
     <qw h="10" wd="33.1" fx="54" fl="3.8" js="0" sd="24"/>
     <qw h="09" wd="32" fx="23" fl="3.3" js="0" sd="21"/>
     <qw h="08" wd="31.1" fx="54" fl="2.5" js="0" sd="22"/>
     <qw h="07" wd="28.9" fx="29" fl="1.9" js="0" sd="26"/>
     <qw h="06" wd="27.2" fx="26" fl="2.5" js="0" sd="34"/>
     <qw h="05" wd="26.8" fx="51" fl="2.2" js="0" sd="43"/>
     <qw h="04" wd="26.4" fx="12" fl="1.3" js="0" sd="52"/>
     <qw h="03" wd="26.5" fx="43" fl="1.4" js="0" sd="51"/>
     <qw h="02" wd="26.5" fx="15" fl="1.7" js="0" sd="48"/>
     <qw h="01" wd="27.4" fx="110" fl="0.7" js="0" sd="45"/>
     <qw h="00" wd="30.2" fx="231" fl="1.7" js="0" sd="34"/>
</sktq>
        """
        q.date = datetime(2009, 6, 25, 23, 30, 0)
        q.put()

        q = m[4]
        q.xml = """<?xml version="1.0"?>
<sktq id="101230101" ptime="09-06-26 23:30" city="xx">
     <qw h="23" wd="27.9" fx="164" fl="5.8" js="0" sd="72"/>
     <qw h="22" wd="28.3" fx="164" fl="3.5" js="0" sd="71"/>
     <qw h="21" wd="28.1" fx="156" fl="3.2" js="0" sd="77"/>
     <qw h="20" wd="28.5" fx="162" fl="1.3" js="0" sd="76"/>
     <qw h="19" wd="29.2" fx="175" fl="2.5" js="0" sd="72"/>
     <qw h="18" wd="29.9" fx="169" fl="3.2" js="0" sd="69"/>
     <qw h="17" wd="30.2" fx="177" fl="4" js="0" sd="65"/>
     <qw h="16" wd="30.6" fx="223" fl="4.2" js="0" sd="62"/>
     <qw h="15" wd="30.6" fx="233" fl="3" js="0" sd="65"/>
     <qw h="14" wd="32.3" fx="159" fl="7.2" js=".1" sd="65"/>
     <qw h="13" wd="33" fx="148" fl="4.9" js="0" sd="60"/>
     <qw h="12" wd="32.6" fx="151" fl="1.5" js="0" sd="60"/>
     <qw h="11" wd="32.5" fx="347" fl="2.2" js="0" sd="63"/>
     <qw h="10" wd="30.6" fx="123" fl="2.1" js="0" sd="67"/>
     <qw h="09" wd="29.5" fx="160" fl="2.3" js="0" sd="76"/>
     <qw h="08" wd="27.3" fx="184" fl="2.2" js="0" sd="85"/>
     <qw h="07" wd="27" fx="244" fl="0.9" js="0" sd="83"/>
     <qw h="06" wd="25.5" fx="311" fl="0.9" js="0" sd="89"/>
     <qw h="05" wd="25" fx="280" fl="0.6" js="0" sd="90"/>
     <qw h="04" wd="24.9" fx="171" fl="1.5" js="0" sd="90"/>
     <qw h="03" wd="24.8" fx="166" fl="1.4" js="0" sd="90"/>
     <qw h="02" wd="24.9" fx="230" fl="1" js="0" sd="89"/>
     <qw h="01" wd="24.8" fx="194" fl="1.2" js="0" sd="89"/>
     <qw h="00" wd="25" fx="162" fl="1.7" js="0" sd="88"/>
</sktq>
        """
        q.date = datetime(2009, 6, 26, 23, 30, 0)
        q.put()

        q = m[5]
        q.xml = """<?xml version="1.0"?>
<sktq id="101010100" ptime="09-06-26 23:30" city="xx">
     <qw h="23" wd="28.2" fx="259" fl="3.1" js="0" sd="50"/>
     <qw h="22" wd="29" fx="237" fl="3.4" js="0" sd="44"/>
     <qw h="21" wd="28.4" fx="176" fl="2.9" js="0" sd="41"/>
     <qw h="20" wd="29.2" fx="161" fl="5.5" js="0" sd="46"/>
     <qw h="19" wd="32.8" fx="141" fl="2.1" js="0" sd="46"/>
     <qw h="18" wd="33.4" fx="197" fl="2.1" js="0" sd="44"/>
     <qw h="17" wd="33.9" fx="242" fl="2.2" js="0" sd="43"/>
     <qw h="16" wd="34.2" fx="259" fl="2.6" js="0" sd="42"/>
     <qw h="15" wd="33.8" fx="124" fl="2.5" js="0" sd="45"/>
     <qw h="14" wd="32.4" fx="164" fl="3.4" js="0" sd="50"/>
     <qw h="13" wd="33" fx="223" fl="1.3" js="0" sd="45"/>
     <qw h="12" wd="31.9" fx="38" fl="1.5" js="0" sd="47"/>
     <qw h="11" wd="30.2" fx="166" fl="1.4" js="0" sd="45"/>
     <qw h="10" wd="29" fx="37" fl="0.7" js="0" sd="44"/>
     <qw h="09" wd="27.8" fx="54" fl="1.4" js="0" sd="43"/>
     <qw h="08" wd="27.2" fx="71" fl="3.3" js="0" sd="40"/>
     <qw h="07" wd="26.3" fx="54" fl="0.8" js="0" sd="42"/>
     <qw h="06" wd="25.3" fx="330" fl="0.8" js="0" sd="42"/>
     <qw h="05" wd="24.5" fx="65" fl="1.2" js="0" sd="46"/>
     <qw h="04" wd="25.1" fx="110" fl="1.7" js="0" sd="44"/>
     <qw h="03" wd="25.4" fx="71" fl="2.3" js="0" sd="44"/>
     <qw h="02" wd="26.4" fx="71" fl="1.5" js="0" sd="38"/>
     <qw h="01" wd="26.7" fx="124" fl="2.2" js="0" sd="35"/>
     <qw h="00" wd="27.6" fx="37" fl="0.8" js="0" sd="35"/>
</sktq>
        """
        q.date = datetime(2009, 6, 26, 23, 30, 0)
        q.put()

        q = m[6]
        q.xml = """<?xml version="1.0"?>
<sktq id="101230101" ptime="09-06-27 23:30" city="xx">
     <qw h="23" wd="27" fx="172" fl="2.9" js="0" sd="78"/>
     <qw h="22" wd="27.3" fx="192" fl="3.5" js="0" sd="77"/>
     <qw h="21" wd="27.4" fx="158" fl="1.6" js="0" sd="80"/>
     <qw h="20" wd="27.7" fx="164" fl="3.5" js="0" sd="78"/>
     <qw h="19" wd="28.2" fx="147" fl="3.5" js="0" sd="77"/>
     <qw h="18" wd="28.8" fx="200" fl="2.7" js="0" sd="71"/>
     <qw h="17" wd="29.2" fx="165" fl="3.1" js="0" sd="74"/>
     <qw h="16" wd="29.9" fx="184" fl="1.5" js=".1" sd="75"/>
     <qw h="15" wd="27.8" fx="168" fl="1.4" js="1.1" sd="82"/>
     <qw h="14" wd="27.9" fx="202" fl="2.8" js=".1" sd="82"/>
     <qw h="13" wd="28.6" fx="302" fl="3.9" js="0" sd="76"/>
     <qw h="12" wd="30.6" fx="155" fl="3.8" js="0" sd="65"/>
     <qw h="11" wd="30.7" fx="284" fl="1.1" js="0" sd="65"/>
     <qw h="10" wd="29.6" fx="310" fl="1.3" js="0" sd="70"/>
     <qw h="09" wd="29.8" fx="225" fl="2.9" js="0" sd="70"/>
     <qw h="08" wd="29.2" fx="304" fl="1.5" js="0" sd="76"/>
     <qw h="07" wd="28.3" fx="60" fl="1.4" js="0" sd="78"/>
     <qw h="06" wd="26.9" fx="72" fl="1.3" js="0" sd="84"/>
     <qw h="05" wd="25.9" fx="320" fl="1.3" js="0" sd="88"/>
     <qw h="04" wd="26.5" fx="147" fl="2.5" js="0" sd="84"/>
     <qw h="03" wd="26.8" fx="291" fl="0.4" js="0" sd="83"/>
     <qw h="02" wd="26.9" fx="140" fl="3" js="0" sd="82"/>
     <qw h="01" wd="27.2" fx="150" fl="2.9" js="0" sd="79"/>
     <qw h="00" wd="27.5" fx="167" fl="3" js="0" sd="77"/>
</sktq>
        """
        q.date = datetime(2009, 6, 27, 23, 30, 0)
        q.put()

        q = m[7]
        q.xml = """<?xml version="1.0"?>
<sktq id="101010100" ptime="09-06-27 23:30" city="xx">
     <qw h="23" wd="27.7" fx="45" fl="1.6" js="0" sd="71"/>
     <qw h="22" wd="28.2" fx="54" fl="2.3" js="0" sd="71"/>
     <qw h="21" wd="28.8" fx="29" fl="1.3" js="0" sd="67"/>
     <qw h="20" wd="29.3" fx="133" fl="2.6" js="0" sd="63"/>
     <qw h="19" wd="30" fx="136" fl="3.4" js="0" sd="52"/>
     <qw h="18" wd="30.6" fx="76" fl="1.3" js="0" sd="49"/>
     <qw h="17" wd="31.6" fx="197" fl="2.5" js="0" sd="45"/>
     <qw h="16" wd="32" fx="181" fl="4" js="0" sd="43"/>
     <qw h="15" wd="32.1" fx="169" fl="1.7" js="0" sd="43"/>
     <qw h="14" wd="31.4" fx="217" fl="2.8" js="0" sd="46"/>
     <qw h="13" wd="30.5" fx="186" fl="1.6" js="0" sd="51"/>
     <qw h="12" wd="30.5" fx="296" fl="0.4" js="0" sd="48"/>
     <qw h="11" wd="28.6" fx="147" fl="1.6" js="0" sd="57"/>
     <qw h="10" wd="27.4" fx="318" fl="1.1" js="0" sd="61"/>
     <qw h="09" wd="26.7" fx="59" fl="2.1" js="0" sd="64"/>
     <qw h="08" wd="26.4" fx="113" fl="1.4" js="0" sd="62"/>
     <qw h="07" wd="25.7" fx="226" fl="0.9" js="0" sd="65"/>
     <qw h="06" wd="25.5" fx="133" fl="1.3" js="0" sd="64"/>
     <qw h="05" wd="24.8" fx="73" fl="1.1" js="0" sd="68"/>
     <qw h="04" wd="24.5" fx="358" fl="0" js="0" sd="67"/>
     <qw h="03" wd="25.1" fx="192" fl="0.8" js="0" sd="64"/>
     <qw h="02" wd="26.8" fx="161" fl="2.4" js="0" sd="57"/>
     <qw h="01" wd="27.3" fx="163" fl="2" js="0" sd="54"/>
     <qw h="00" wd="28" fx="220" fl="1.6" js="0" sd="52"/>
</sktq>
        """
        q.date = datetime(2009, 6, 27, 23, 30, 0)
        q.put()

        q = m[8]
        q.xml = """<?xml version="1.0"?>
<sktq id="101230101" ptime="09-06-28 23:30" city="xx">
     <qw h="23" wd="28.1" fx="198" fl="4.5" js="0" sd="73"/>
     <qw h="22" wd="28.4" fx="178" fl="3.6" js="0" sd="71"/>
     <qw h="21" wd="27.7" fx="173" fl="4.4" js="0" sd="77"/>
     <qw h="20" wd="28.1" fx="156" fl="2.5" js="0" sd="75"/>
     <qw h="19" wd="28.3" fx="181" fl="3.1" js="0" sd="76"/>
     <qw h="18" wd="29.2" fx="175" fl="5" js="0" sd="74"/>
     <qw h="17" wd="29.8" fx="174" fl="3.4" js="0" sd="74"/>
     <qw h="16" wd="30.1" fx="191" fl="4.9" js="0" sd="72"/>
     <qw h="15" wd="30.7" fx="143" fl="4.2" js="0" sd="68"/>
     <qw h="14" wd="30" fx="146" fl="5.7" js="0" sd="69"/>
     <qw h="13" wd="31.4" fx="230" fl="5.8" js="0" sd="57"/>
     <qw h="12" wd="32" fx="180" fl="7.5" js="0" sd="59"/>
     <qw h="11" wd="29.7" fx="189" fl="7.5" js="0" sd="63"/>
     <qw h="10" wd="30.7" fx="186" fl="8.6" js="0" sd="60"/>
     <qw h="09" wd="30.2" fx="196" fl="5.7" js="0" sd="64"/>
     <qw h="08" wd="28.8" fx="218" fl="3.6" js="0" sd="69"/>
     <qw h="07" wd="27.6" fx="164" fl="3.2" js="0" sd="79"/>
     <qw h="06" wd="26.4" fx="136" fl="1.4" js="0" sd="84"/>
     <qw h="05" wd="25.9" fx="143" fl="1.9" js="0" sd="86"/>
     <qw h="04" wd="25.9" fx="182" fl="0.8" js="0" sd="86"/>
     <qw h="03" wd="26.2" fx="159" fl="2.7" js="0" sd="84"/>
     <qw h="02" wd="26.7" fx="159" fl="1.3" js="0" sd="81"/>
     <qw h="01" wd="26.8" fx="159" fl="1.8" js="0" sd="80"/>
     <qw h="00" wd="27.2" fx="155" fl="3.8" js="0" sd="76"/>
</sktq>
        """
        q.date = datetime(2009, 6, 28, 23, 30, 0)
        q.put()

        q = m[9]
        q.xml = """<?xml version="1.0"?>
<sktq id="101010100" ptime="09-06-28 23:30" city="xx">
     <qw h="23" wd="27.7" fx="233" fl="2.5" js="0" sd="36"/>
     <qw h="22" wd="28.5" fx="228" fl="3.1" js="0" sd="34"/>
     <qw h="21" wd="29.2" fx="211" fl="2.3" js="0" sd="33"/>
     <qw h="20" wd="30.2" fx="184" fl="3" js="0" sd="29"/>
     <qw h="19" wd="31.5" fx="197" fl="4.2" js="0" sd="26"/>
     <qw h="18" wd="33" fx="189" fl="2.9" js="0" sd="17"/>
     <qw h="17" wd="34.2" fx="181" fl="3.4" js="0" sd="18"/>
     <qw h="16" wd="34.3" fx="177" fl="5.1" js="0" sd="18"/>
     <qw h="15" wd="34.7" fx="164" fl="6.1" js="0" sd="18"/>
     <qw h="14" wd="34.8" fx="192" fl="7.4" js="0" sd="19"/>
     <qw h="13" wd="35.2" fx="217" fl="4.7" js="0" sd="15"/>
     <qw h="12" wd="34.7" fx="217" fl="5.5" js="0" sd="16"/>
     <qw h="11" wd="34.4" fx="214" fl="3.4" js="0" sd="14"/>
     <qw h="10" wd="33.9" fx="138" fl="2.3" js="0" sd="15"/>
     <qw h="09" wd="32.5" fx="119" fl="0.4" js="0" sd="14"/>
     <qw h="08" wd="30.7" fx="48" fl="0.5" js="0" sd="20"/>
     <qw h="07" wd="29" fx="26" fl="1.6" js="0" sd="28"/>
     <qw h="06" wd="26.4" fx="62" fl="1.2" js="0" sd="63"/>
     <qw h="05" wd="23.2" fx="93" fl="0.4" js="0" sd="77"/>
     <qw h="04" wd="24" fx="54" fl="1.1" js="0" sd="74"/>
     <qw h="03" wd="25.2" fx="48" fl="0.8" js="0" sd="79"/>
     <qw h="02" wd="26.1" fx="68" fl="2" js="0" sd="75"/>
     <qw h="01" wd="26.5" fx="55" fl="2.8" js="0" sd="74"/>
     <qw h="00" wd="27.3" fx="34" fl="1.7" js="0" sd="72"/>
</sktq>
        """
        q.date = datetime(2009, 6, 28, 23, 30, 0)
        q.put()

